package com.example.videoweb.dao;

import com.example.videoweb.domain.UnCheckVideo;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UnCheckVideoMapper {
    public int insert(UnCheckVideo unCheckVideo);//添加视频
    public int update(UnCheckVideo unCheckVideo);//更新信息
    public int delete(Integer id);       //删除视频
    public UnCheckVideo selectByPrimaryKey(Integer id);//通过id查找视频
    public List<UnCheckVideo> allVideo();    //查询所有视频
    public List<UnCheckVideo> getByAuthorId(Integer authorId);   //通过用户id查询视频
}
